@function r($px) {
    @return ($px/200)*1rem;
}

html {
    position: fixed;
    overflow: hidden;
    width: 100%;
}

#closeButton {
    position: absolute;
    background: url(../bitmap/button2.png) center top/cover no-repeat;
    top: r(77);
    right: r(70);
    width: r(246);
    height: r(160);
    z-index: 1;
    outline: none;
}

#rulesButton {
    position: absolute;
    bottom: r(139);
    text-align: center;
    z-index: 1;
    width: 100%;
    font-size: r(42);
    color: rgba(248, 243, 106, 1);
    font-family: DFPHaiBaoW12-GB;
    height: r(59);
    font-weight: 400;
    // margin-left: - r(172);
    line-height: r(49);
    outline: none;
    background: transparent;
}

#gameRules {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 1);
    opacity: 0.6;
    left: 0;
    top: 0;
    z-index: 2;
    display: none;
}

#rulesImg {
    position: absolute;
    background: url(../bitmap/pause.png) center top/cover no-repeat;
    width: r(976);
    height: r(1246);
    z-index: 3;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    display: none;

    .rulesTitle {
        position: absolute;
        font-size: r(66);
        font-family: DFPHaiBaoW12-GB;
        font-weight: 400;
        line-height: r(79);
        color: rgba(248, 243, 106, 1);
        width: r(264);
        margin: auto;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;

        height: r(66);
        margin-top: r(92);
    }

    .rulesContent {
        position: absolute;
        width: r(664);
        height: r(857);
        font-size: r(27);
        font-family: Microsoft YaHei;
        font-weight: 400;
        line-height: r(49);
        color: rgba(255, 255, 255, 1);
        margin: auto;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin-top: r(280);
    }
}

#reset {
    position: absolute;
    width: r(246);
    height: r(160);
    left: r(70);
    bottom: r(70);
    background: url(../bitmap/btn3.png) center top/cover no-repeat;
    z-index: 1;
    display: none;
    outline: none;
}

#lotteryBackground {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 1);
    opacity: 0.6;
    left: 0;
    top: 0;
    z-index: 2;
    display: none;
}

#lottery {
    position: absolute;
    background: url(../bitmap/pause.png) center top/cover no-repeat;
    width: r(1266);
    height: r(1616);
    z-index: 3;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    display: none;

    .lotteryTitle {
        position: absolute;
        font-size: r(66);
        // font-family: DFPHaiBaoW12-GB;
        font-weight: 400;
        line-height: r(79);
        color: rgba(248, 243, 106, 1);
        width: 100%;
        margin: auto;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: r(66);
        margin-top: r(120);
        text-align: center;
        z-index: 4;
    }

    .lotteryIcon {
        position: absolute;
        background: url(../bitmap/jt_img.png) center top/cover no-repeat;
        width: r(85);
        height: r(107);
        z-index: 4;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        margin: auto;
        margin-top: r(359)
    }

    #lotteryImg {
        position: absolute;
        background: url(../bitmap/zp_bg.png) center top/cover no-repeat;
        width: r(844);
        height: r(844);
        z-index: 3;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        margin: auto;
        margin-top: r(419);
        // transform: rotate(0deg);
        transform-origin: center;
        
        transition: all 2000ms ease-in-out .1s;
    }

    #lotteryButton {
        position: absolute;
        background: url(../bitmap/button.png) center top/cover no-repeat;
        width: r(690);
        height: r(303);
        z-index: 3;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        margin: auto;
        margin-bottom: - r(112);
        font-size: r(79);
        font-family: DFPHaiBaoW12-GB;
        font-weight: 400;
        line-height: r(303);
        color: rgba(248, 243, 106, 1);
        text-shadow: #333 2px 2px 2px;
        text-align: center;
    }
}

#QR_code {
    position: absolute;
    z-index: 1;
    width: r(318);
    height: r(326);
    right: r(122);
    bottom: r(187);
    display: none;
}


.Turntable_1, .Turntable_2, .Turntable_3, .Turntable_4, .Turntable_5, .Turntable_6 {
    position: absolute;
    width: r(160);
    height: r(264);
    z-index: 3;
}

.Turntable_1 {
    z-index: 3;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    margin-top: r(34);
}

.Turntable_2 {
    z-index: 3;
    left: r(585);
    top: r(159);
    transform: rotate(60deg);
    transform-origin: center;
}

.Turntable_3 {
    z-index: 3;
    right: r(99);
    top: r(421);
    transform: rotate(120deg);
    transform-origin: center;
}

.Turntable_4 {
    z-index: 3;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    margin-bottom: r(46);
    transform: rotate(180deg);
    transform-origin: center;
}

.Turntable_5 {
    z-index: 3;
    left: r(99);
    top: r(421);
    transform: rotate(-120deg);
    transform-origin: center;
}

.Turntable_6 {
    z-index: 3;
    right: r(585);
    top: r(159);
    transform: rotate(-60deg);
    transform-origin: center;
}

.Turntable_img {
    width: r(160);
    height: r(160);
    background: url(https://gz.bcebos.com/v1/beauty-mirror/coupon_tickets/s2_img@3x.png) no-repeat;
    background-size: cover;
}

.Turntable_cash {
    width: r(130);
    height: r(52);
    font-size: r(52);
    line-height: r(25);
    text-align: center;
    color: rgba(255, 255, 255, 1);
}

.Turntable_content {
    width: r(130);
    height: r(52);
    line-height: r(25);
    font-size: r(18);
    text-align: center;
    color: rgba(255, 255, 255, 1);
}

.oneMore {
    position: absolute;
    background: url(../bitmap/button.png) center top/cover no-repeat;
    width: r(690);
    height: r(303);
    z-index: 3;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    margin-bottom: - r(112);
    font-size: r(79);
    font-family: DFPHaiBaoW12-GB;
    font-weight: 400;
    line-height: r(303);
    color: rgba(248, 243, 106, 1);
    text-shadow: #333 2px 2px 2px;
    text-align: center;
    display: none;
}
.back_app{
    position: absolute;
  background: url(../bitmap/button.png) center top/cover no-repeat;
  width: 3.45rem;
  height: 1.515rem;
  z-index: 3;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  margin-bottom: -0.56rem;
  font-size: 0.395rem;
  font-family: DFPHaiBaoW12-GB;
  font-weight: 400;
  line-height: 1.515rem;
  color: #f8f36a;
  text-shadow: #333 2px 2px 2px;
  text-align: center;
  display: none;
}

.red_envelope {
    position: absolute;
    background: url(../bitmap/hb_bg.png) center top/cover no-repeat;
    width: r(643);
    height: r(572);
    z-index: 3;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    margin-top: r(354);
    display: none;

    .red_title {
        position: absolute;
        z-index: 3;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        margin: auto;
        margin-top: r(41);
        width: 100%;
        height: r(64);
        font-size: r(28);
        font-weight: 400;
        line-height: r(24);
        color: rgba(255, 77, 77, 1);
        text-align: center;
    }

    .red_cash {
        position: absolute;
        z-index: 3;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        margin: auto;
        margin-top: r(95);
        width: r(384);
        height: r(124);
        font-size: r(90);
        font-weight: 400;
        line-height: r(77);
        color: rgba(51, 51, 51, 1);
        font-family: Impact;
    }

    .look_card{
        position: absolute;
        width: 2.025rem;
        height: 0.6rem;
        z-index: 3;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        margin: auto;
        margin-top: 1.9rem;
        border-radius: 0.3rem;
        color: #FF4D4D;
        background-color: #FEEDA9;
        display: none;
    }
    .red_QRcode {
        position: absolute;
        width: r(205);
        height: r(205);
        z-index: 3;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        margin: auto;
        margin-top: r(328);

        display: none;
        img{
            height: 100%;
            width: 100%;
        }
    }
}

.red_rules {
    position: absolute;
    z-index: 3;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: r(842);
    height: r(366);
    margin: auto;
    margin-bottom: r(264);
    color: rgba(255, 255, 255, 1);
    font-weight: 400;
    line-height: r(49);
    font-size: r(36);
    display: none;
}

#failImg {
    position: absolute;
    background: url(../bitmap/pause.png) center top/cover no-repeat;
    width: r(976);
    height: r(1246);
    z-index: 4;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    display: none;

    .failTitle {
        position: absolute;
        font-size: r(66);
        font-family: DFPHaiBaoW12-GB;
        font-weight: 400;
        line-height: r(79);
        color: rgba(248, 243, 106, 1);
        width: r(264);
        margin: auto;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;

        height: r(66);
        margin-top: r(92);
    }

    .failIcon {
        position: absolute;
        margin: auto;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin-top: r(266);
        width: r(328);
        height: r(224);
        background: url(../bitmap/loselove.png) center no-repeat;
        background-size: cover;
    }

    .failScore {
        position: absolute;
        margin: auto;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin-top: r(623);
        width: 100%;
        height: r(224);
        font-size: r(170);
        color: rgba(255, 255, 255, 1);
        line-height: r(203);
        font-weight: 400;
        text-align: center;
    }

    .fail-btn {
        position: absolute;
        background: url(../bitmap/button.png) center top/cover no-repeat;
        width: r(690);
        height: r(303);
        z-index: 3;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        margin: auto;
        margin-bottom: - r(112);
        font-size: r(79);
        font-family: DFPHaiBaoW12-GB;
        font-weight: 400;
        line-height: r(303);
        color: rgba(248, 243, 106, 1);
        text-shadow: #333 2px 2px 2px;
        text-align: center;
    }

}
